package demo2;

public class Dog extends Anima1 implements IRunning , ISwimming {
    @Override
    public void play() {
        System.out.println("跑啊跑跑》》》》");

    }
    public Dog(String name,int age){
        super(name,age);
    }

    @Override
    public void run() {
        System.out.println("dog IRunning的方法");
    }

    @Override
    public void swim() {
        System.out.println("dog ISwimming的方法");

    }
}
